package com.example.therDays.ui.components.dailyWeather


import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.rememberScrollState
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.Scaffold
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.TextStyle
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.example.therDays.ui.model.entity.DailyWeatherModel
import com.google.accompanist.insets.LocalWindowInsets

@Composable
fun DailyWeather(dailyWeatherList: List<DailyWeatherModel>) {

        Column(modifier = Modifier
            .fillMaxWidth()
            .fillMaxHeight()
            .padding(horizontal = 10.dp)) {
            Text(text = "每日天气", style = TextStyle(
                fontSize = 18.sp
            ), modifier = Modifier.padding(10.dp))
            LazyColumn(modifier = Modifier.padding(bottom =14.dp)){
                items(dailyWeatherList){
                    DailyWeatherItem(it)
                }
            }

    }
}

